<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>健康饮食 - 登录</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* 防止内容溢出 */
        body {
            overflow-x: hidden;
            max-width: 100vw;
        }
        /* 确保容器不溢出 */
        .container {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }
        /* 长文本自动换行 */
        p, span, div {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        /* 登录页背景 */
        .login-bg {
            background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
        }
        /* 微信登录按钮动画效果 */
        .btn-wechat:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        }
        .btn-wechat {
            transition: all 0.3s ease;
        }
    </style>
</head>
<body class="login-bg min-h-screen flex flex-col justify-center items-center">
    <!-- 登录页主容器 -->
    <div class="container mx-auto px-4 py-10 max-w-md">
        <!-- Logo和欢迎信息 -->
        <div class="text-center mb-10">
            <div class="inline-block bg-white p-4 rounded-full mb-6">
                <i class="fas fa-leaf text-green-600 text-4xl"></i>
            </div>
            <h1 class="text-2xl font-bold text-white mb-2">健康饮食助手</h1>
            <p class="text-green-100">您的个人营养管理专家</p>
        </div>
        
        <!-- 登录卡片 -->
        <div class="bg-white rounded-2xl shadow-xl p-8">
            <div class="text-center mb-8">
                <h2 class="text-xl font-semibold text-gray-800">欢迎使用</h2>
                <p class="text-gray-500 text-sm mt-1">请使用微信账号登录</p>
            </div>
            
            <!-- 登录按钮 -->
            <button class="btn-wechat w-full bg-green-500 hover:bg-green-600 text-white rounded-lg py-3 mb-4 flex items-center justify-center">
                <i class="fab fa-weixin text-xl mr-2"></i>
                <span>微信一键登录</span>
            </button>
            
            <!-- 安全提示 -->
            <div class="text-center text-gray-500 text-xs mt-6">
                <p class="mb-2">登录即表示您同意</p>
                <div class="flex justify-center space-x-2">
                    <a href="#" class="text-green-600">《用户协议》</a>
                    <span>和</span>
                    <a href="#" class="text-green-600">《隐私政策》</a>
                </div>
            </div>
        </div>
        
        <!-- 功能预览 -->
        <div class="mt-10">
            <div class="grid grid-cols-3 gap-4 text-center">
                <div class="text-white">
                    <div class="bg-white bg-opacity-20 rounded-lg p-3 mb-2">
                        <i class="fas fa-utensils text-white"></i>
                    </div>
                    <p class="text-xs">饮食记录</p>
                </div>
                <div class="text-white">
                    <div class="bg-white bg-opacity-20 rounded-lg p-3 mb-2">
                        <i class="fas fa-chart-pie text-white"></i>
                    </div>
                    <p class="text-xs">营养分析</p>
                </div>
                <div class="text-white">
                    <div class="bg-white bg-opacity-20 rounded-lg p-3 mb-2">
                        <i class="fas fa-book-open text-white"></i>
                    </div>
                    <p class="text-xs">健康食谱</p>
                </div>
            </div>
        </div>
        
        <!-- 底部版权 -->
        <div class="text-center mt-8">
            <p class="text-xs text-green-100">&copy; 2023 健康饮食 - 营养管理小程序</p>
        </div>
    </div>
</body>
</html> 